<div {{bind-attr class=":alert alertType saveResult::hide" }}>
	<strong>
		{{saveResult}}
	</strong>
</div>
<form class="form-horizontal">
	<div class="row-fluid">
		<div class="position-container">
			<div class="control-group">
				<table class="conf-table conf-usermangge-tab">
					<tr>
						<th width="30%">系统名称</th>
						<th width="50%">地图</th>
						<th width="20%"></th>
					</tr>
					{{#each maplists as |maplist|}}
					<tr>
						<td >
							{{maplist.appName}}
						</td>
						<td >
							{{maplist.areaName}}
						</td>
						<td>
							<a href="javascript:;" class="grid-btn grid-edit-btn" {{action "openDialog" maplist }} title="设置"></a>
						</td>
					</tr>
					{{/each}}
				</table>
			</div>
		</div>
	</div>
</form>

{{#view view.Dialog
	id="position_map_set"
	title="地图设置"
	width="350"
	height="210"
	class="hide"
	autoOpen=false
	modal=true
	buttons=dialogButtons}}
	<div id="dialog">
	<div {{bind-attr class=":alert alertType formTip::hide"}}><strong>{{formTip}}</strong></div>
		<div class="control-group">
			<label class="control-label">地址:</label>
			<div class="controls">
				{{view "select"
					class="position-pcd-sel1"
					content=gloArrays
					optionLabelPath="content.name"
					optionValuePath="content.code"
					value=form.globleCode}}
				{{view "select"
					class="position-pcd-sel2"
					content=protlists
					optionLabelPath="content.name"
					optionValuePath="content.code"
					value=form.proCode}}
				{{view "select"
					class="position-pcd-sel3"
					content=citylists
					optionLabelPath="content.name"
					optionValuePath="content.code"
					value=form.cityCode}}  
			</div>
		</div>
		<div class="control-group">
			<div class="controls">
				<button type="submit" {{action "setArea"}} class="btn btn-primary">保存</button>
				<button type="button" {{action "closeDialog"}} class="btn">取消</button>
			</div>
		</div>
	</div>  
{{/view}}